package io.renren.modules.upk.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.upk.dao.UpkCartDao;
import io.renren.modules.upk.entity.UpkCartEntity;
import io.renren.modules.upk.service.UpkCartService;


@Service("upkCartService")
public class UpkCartServiceImpl extends ServiceImpl<UpkCartDao, UpkCartEntity> implements UpkCartService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<UpkCartEntity> page = this.selectPage(
                new Query<UpkCartEntity>(params).getPage(),
                new EntityWrapper<UpkCartEntity>()
        );

        return new PageUtils(page);
    }

}
